<template>
  <div>
    <h3>新闻详情</h3>
    <p>{{name}}新闻</p>
    <p>title:{{title}},className: {{className}}</p>

  </div>
</template>

<script>
export default {
    name: 'NewsDetail',
    props: ['title','className'],
    computed: {
        name() {
            return this.$route.query.title;
        }
    }
}
</script>

<style>

</style>